﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace MVBuddy.Converters
{
    public class IntToTextBoxStyleConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            int count = (int)value;

            if (count > 0)
            {
                return Application.Current.Resources["MVDarkOrangeBrush"];
            }

            return Application.Current.Resources["MVLightGrayBrush"];
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
